#include <check.h>
#include <stdlib.h> /* Para tener EXIT_XXX */
#include "test_ksamp_options.h"
#include "test_lexer.h"
#include "test_cpu_info.h"
#include "test_data_format.h"
#include "test_statistic_info.h"
#include "test_version_info.h"
#include "test_kernel_info.h"

int main (void)
{
	int number_failed;
	SRunner *sr = srunner_create (ksamp_options_suite());
	srunner_add_suite (sr, lexer_suite ());
	srunner_add_suite (sr, cpu_info_suite ());
	srunner_add_suite (sr, data_format_suite ());
	srunner_add_suite (sr, statistic_info_suite ());
	srunner_add_suite (sr, version_info_suite ());
	srunner_add_suite (sr, kernel_info_suite ());

	srunner_set_log (sr, "test.log");
	srunner_run_all (sr, CK_NORMAL);
	number_failed = srunner_ntests_failed (sr);
	srunner_free (sr);
	return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}

